package com.jsu.hotelmanagement.pojo.vo;

import com.jsu.hotelmanagement.pojo.dto.RoomDetailInfoDTO;
import lombok.Data;

import java.util.List;

/**
 * @author Mo
 * @createTime 2022/12/7 23:03
 * @description
 */
@Data
public class RoomDetailInfoVO {
    private Integer roomId;
    private String roomName;
    private String roomTypeName;
    private String bedTypeName;

    private List<String> tagList;

    /**
     * 0空闲,1已用,2已预定,3清理中, 4暂用
     */
    private String roomStatus;

    public void setAttributes(RoomDetailInfoDTO roomDetailInfoDTO) {
        this.roomId = roomDetailInfoDTO.getRoomId();
        this.roomName = roomDetailInfoDTO.getRoomName();
        this.roomTypeName = roomDetailInfoDTO.getRoomTypeName();
        this.bedTypeName = roomDetailInfoDTO.getBedTypeName();
        this.roomStatus = roomDetailInfoDTO.getRoomStatus();
    }
}
